package com.wizard.moremall.common.service.impl;

import com.wizard.moremall.common.entity.Category;
import com.wizard.moremall.common.mapper.CategoryMapper;
import com.wizard.moremall.common.service.ICategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wizard.moremall.common.vo.IndexCategoryVO;
import com.wizard.moremall.common.vo.IndexTagVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-01-18
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    //首页二级分类列表
    @Override
    public List<IndexCategoryVO> indexList() {
        return baseMapper.indexList();
    }

    //首页顶部推荐商品
    @Override
    public List<IndexTagVO> indexTop() {
        return baseMapper.indexTop();
    }
}
